package com.biz;

import com.dao.BooktypeMapper;
import com.entity.Booktype;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IBooktypeBizImp implements  IBooktypeBiz{

    @Autowired
    private BooktypeMapper dao;

    public BooktypeMapper getDao() {
        return dao;
    }

    public void setDao(BooktypeMapper dao) {
        this.dao = dao;
    }

    @Override
    public List<Booktype> getAll() {
        return dao.getAll();
    }

    @Override
    public void addType(Booktype booktype) {
        dao.addType(booktype);
    }

    @Override
    public void modType(Booktype booktype) {
        dao.modType(booktype);
    }

    @Override
    public void delType(int tid) {
        dao.delType(tid);
    }

    @Override
    public Booktype getById(int tid) {
        return dao.getById(tid);
    }
}
